home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14107 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.ust.hk!not-for-mail
  2. From: ee_yeh@uxmail.ust.hk (Edmond Yeh)
  3. Newsgroups: comp.lang.c++
  4. Subject: Put a job in background
  5. Date: 28 Mar 1996 07:31:59 GMT
  6. Organization: HKUST
  7. Message-ID: <4jdf9f$f0r@ustsu10.ust.hk>
  8. NNTP-Posting-Host: eesu21.ee.ust.hk
  9. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  10.  
  11. I am using NT 3.51 and there is a program called fax.exe which can be 
  12. run in DOS command line : "fax -3 -1234567 abc.txt" to fax out the docunment 
  13. in 3 trials.
  14.  
  15. I would like to include this function in a WWW cgi program using C++ or 
  16. perl script so that when the user click the button , the job is send 
  17. to background to fax out the document while he can continue to browse 
  18. other pages document.
  19. I have tried to simply call the system function in C++ , but the screen 
  20. just hangs without and action. The same case in Perl.
  21.  
  22. Is there any way to do that ?
  23. I read from the newsgroup that I can use the _spawn function in C++ to do 
  24. background job, can anyone explain how this is done ?
  25. Any other way to do that using Perl ?
  26.  
  27. Thanks a lot,
  28. Edmond
  29.  
  30.  
  31.